import axios from "@/api/index";
//搜索请求函数 
function indexaction(data) {
    return axios({
        url: "/search/indexaction",
        method: "GET",
        data
    })
}
//搜索提示弹窗
function helperaction(data) {
    return axios({
        url: "/search/helperaction",
        method: "GET",
        data
    })
}
//将历史记录添加至数据库
function addhistoryaction(data) {
    return axios({
        url: "/search/addhistoryaction",
        method: "POST",
        data
    })
}
// 请求删除函数 
function clearhistoryAction(data) {
    return axios({
        url: "/search/clearhistoryAction",
        method: "POST",
        data
    })
}

export {
    indexaction,
    helperaction,
    addhistoryaction,
    clearhistoryAction
}
// export default indexaction 